﻿@model DauGiaApp.Models.TaiKhoan

@{
    ViewBag.Title = "SuaThongTin";
    Layout = "~/Views/Admin/_LayoutAdmin.cshtml";
}

<h2>SuaThongTin</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
    
        <legend>Thông tin tài khoản</legend>
        <table width = "100%">
        <tr>
        <td>
        <div class="editor-label">
            @Html.LabelFor(model => model.TenTaiKhoan)
        </div>
        </td>
        <td>
        <div class="editor-field">
            @Html.EditorFor(model => model.TenTaiKhoan)
            @Html.ValidationMessageFor(model => model.TenTaiKhoan)
        </div>
        </td>
        </tr>
        <tr>
        <td>
        <div class="editor-label">
            @Html.LabelFor(model => model.MatKhau)
        </div>
        </td>
        <td>
        <div class="editor-field">
            @Html.EditorFor(model => model.MatKhau)
            @Html.ValidationMessageFor(model => model.MatKhau)
        </div>
        </td>
        </tr>
        <tr>
        <td>
        <div class="editor-label">
            @Html.LabelFor(model => model.MaLoaiTaiKhoan)
        </div>
        </td>
        <td>
        <div class="editor-field">
            @Html.EditorFor(model => model.MaLoaiTaiKhoan)
            @Html.ValidationMessageFor(model => model.MaLoaiTaiKhoan)
        </div>
        </td>
        </tr>
        <tr>
        <td>
        <div class="editor-label">
            @Html.LabelFor(model => model.Avatar)
        </div>
        </td>
        <td>
        <div class="editor-field">
            @Html.EditorFor(model => model.Avatar)
            @Html.ValidationMessageFor(model => model.Avatar)
        </div>
        </td>
        </tr>
        <tr>
        <td>
        <div class="editor-label">
            @Html.LabelFor(model => model.TrangThai)
        </div>
        </td>
        <td>
        <div class="editor-field">
            @Html.EditorFor(model => model.TrangThai)
            @Html.ValidationMessageFor(model => model.TrangThai)
        </div>
        </td>
        </tr>
        <tr>
        <td>
        <div class="editor-label">
            @Html.LabelFor(model => model.DiemTinCayBan)
        </div>
        </td>
        <td>
        <div class="editor-field">
            @Html.EditorFor(model => model.DiemTinCayBan)
            @Html.ValidationMessageFor(model => model.DiemTinCayBan)
        </div>
        </td>
        </tr>
        <tr>
        <td>
        <div class="editor-label">
            @Html.LabelFor(model => model.DiemTinCayMua)
        </div>
        </td>
        <td>
        <div class="editor-field">
            @Html.EditorFor(model => model.DiemTinCayMua)
            @Html.ValidationMessageFor(model => model.DiemTinCayMua)
        </div>
        </td>
        </tr>
        <tr>
        <td>
        <div class="editor-label">
            @Html.LabelFor(model => model.MaThongTinTK)
        </div>
        </td>
        <td>
        <div class="editor-field">
            @Html.EditorFor(model => model.MaThongTinTK)
            @Html.ValidationMessageFor(model => model.MaThongTinTK)
        </div>
        </td>
        </tr>
        <tr>
        <td>
        <div class="editor-label">
            @Html.LabelFor(model => model.Email)
        </div>
        </td>
        <td>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>
        </td>
        </tr>
        </table>
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

